﻿using System;

public class CSTypeCasting 
{
  double Square(object obj) {
    return Math.Pow((double)obj, 2);
  }

  public void Cast() {
    object obj = 2.0;
    Console.WriteLine(Square(obj));
  }
}